home *** CD-ROM | disk | FTP | other *** search
- // ================
- // BATTLEZONE SHELL
- // ================
-
- //Exec("bzshell_init.cfg");
-
- //
- // CREATE SHELL INSTANT ACTION PAGE
- //
- CreateControl("ShellInstant", "WINDOW")
- {
- // inherit root window's dimensions
- Geometry("PARENTWIDTH", "PARENTHEIGHT");
-
- // set window style
- Style("TRANSPARENT", "INERT");
-
- //
- // create the "back" button
- //
- CreateControl("Back", "BUTTON")
- {
- ColorGroup("MAGENTA");
-
- Geometry("LEFT", "TOP");
- Position(20, 30);
- Size(120, 0);
- BorderSize(10);
- BevelSize(5);
- TabSize(80, 10);
- Style("ROLLOVER", "OUTLINE");
- Projector(0);
- Title("Back");
- TitleFont("MEDIUM");
- Cursor("Highlight");
- NotifyParent("Button::Press", "Back");
- }
-
- CreateControl("Instant", "WINDOW")
- {
- Geometry("HCENTRE", "VCENTRE");
- Position(0, 0);
- Size(500, 250);
- BorderSize(10);
- BevelSize(5);
- TabSize(150, 10);
- Style("RIGHTTAB", "OUTLINE");
- Projector(1);
- Title("Instant Action");
- TitleFont("MEDIUM");
-
- CreateControl("List", "LISTBOX")
- {
- ColorGroup("LISTBOX");
- Geometry("RIGHT", "TOP");
- Position(-20, 30);
- Size(210, 190);
- CellSize(210, 10);
- BorderSize(5);
- BevelSize(3);
- Font("SMALL");
- NotifyParent("Listbox::DblClick", "Launch");
- UseVar("shell.instant.name");
- Cursor("Highlight");
- }
-
- //
- // create the all button
- //
- CreateControl("All", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("RIGHT", "TOP");
- Position(-171, 5);
- Size(64, 10);
- BorderSize(3);
- BevelSize(2);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("All");
- Cursor("Highlight");
- UseVar("shell.instant.missiontype");
- Value(0);
- }
-
- //
- // create the action button
- //
- CreateControl("Action", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("RIGHT", "TOP");
- Position(-96, 5);
- Size(64, 10);
- BorderSize(3);
- BevelSize(2);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Action");
- Cursor("Highlight");
- UseVar("shell.instant.missiontype");
- Value(1);
- }
-
- //
- // create the strategy button
- //
- CreateControl("Strategy", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("RIGHT", "TOP");
- Position(-21, 5);
- Size(64, 10);
- BorderSize(3);
- BevelSize(2);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Strategy");
- Cursor("Highlight");
- UseVar("shell.instant.missiontype");
- Value(2);
- }
-
- //
- // create the difficulty title
- //
- CreateControl("Difficulty", "STATIC")
- {
- Geometry("LEFT", "TOP");
- Position(0, 45);
- Size(100, 10);
- Style("TRANSPARENT");
- Font("MEDIUM");
- JustifyText("LEFT");
- Text("Difficulty");
- }
-
- //
- // create easy difficulty button
- //
- CreateControl("Easy", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(5, 65);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Easy");
- Cursor("Highlight");
- UseVar("shell.instant.difficulty");
- Value(0);
- }
-
- //
- // create the medium difficulty button
- //
- CreateControl("Medium", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(85, 65);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Medium");
- Cursor("Highlight");
- UseVar("shell.instant.difficulty");
- Value(1);
- }
-
- //
- // create the hard difficulty button
- //
- CreateControl("Hard", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(165, 65);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Hard");
- Cursor("Highlight");
- UseVar("shell.instant.difficulty");
- Value(2);
- }
-
- //
- // create the mission goal title
- //
- CreateControl("Goal", "STATIC")
- {
- Geometry("LEFT", "TOP");
- Position(0, 90);
- Size(150, 10);
- Style("TRANSPARENT");
- Font("MEDIUM");
- JustifyText("LEFT");
- Text("Mission Goal");
- }
-
- //
- // create the CTF button
- //
- CreateControl("CTF", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(5, 110);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("CTF");
- Cursor("Highlight");
- UseVar("shell.instant.goaltype");
- Value(0);
- }
-
- //
- // create the assault button
- //
- CreateControl("Assault", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(85, 110);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Assault");
- Cursor("Highlight");
- UseVar("shell.instant.goaltype");
- Value(1);
- }
-
- //
- // create the defend button
- //
- CreateControl("Defend", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(165, 110);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Defend");
- Cursor("Highlight");
- UseVar("shell.instant.goaltype");
- Value(2);
- }
-
- //
- // create the computer force title
- //
- CreateControl("Computer", "STATIC")
- {
- Geometry("LEFT", "TOP");
- Position(0, 135);
- Size(150, 10);
- Style("TRANSPARENT");
- Font("MEDIUM");
- JustifyText("LEFT");
- Text("Computer Force");
- }
-
- //
- // create the small force button
- //
- CreateControl("Small", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(5, 155);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Small");
- Cursor("Highlight");
- UseVar("shell.instant.computerforce");
- Value(0);
- }
-
- //
- // create the medium force button
- //
- CreateControl("Medium", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(85, 155);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Medium");
- Cursor("Highlight");
- UseVar("shell.instant.computerforce");
- Value(1);
- }
-
- //
- // create the large force button
- //
- CreateControl("Large", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(165, 155);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Large");
- Cursor("Highlight");
- UseVar("shell.instant.computerforce");
- Value(2);
- }
-
- //
- // create player force title
- //
- CreateControl("Player", "STATIC")
- {
- Geometry("LEFT", "TOP");
- Position(0, 180);
- Size(120, 10);
- Style("TRANSPARENT");
- Font("MEDIUM");
- JustifyText("LEFT");
- Text("Player Force");
- }
-
- //
- // create the small force button
- //
- CreateControl("Small", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(5, 200);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Small");
- Cursor("Highlight");
- UseVar("shell.instant.playerforce");
- Value(0);
- }
-
- //
- // create the medium force button
- //
- CreateControl("Medium", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(85, 200);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Medium");
- Cursor("Highlight");
- UseVar("shell.instant.playerforce");
- Value(1);
- }
-
- //
- // create the large force button
- //
- CreateControl("Large", "BUTTON")
- {
- ColorGroup("LISTBOX");
-
- Geometry("LEFT", "TOP");
- Position(165, 200);
- Size(65, 10);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Large");
- Cursor("Highlight");
- UseVar("shell.instant.playerforce");
- Value(2);
- }
- }
-
- //
- // create the "launch" button
- //
- CreateControl("Launch", "BUTTON")
- {
- ColorGroup("MAGENTA");
-
- Geometry("RIGHT", "BOTTOM");
- Position(-20, -20);
- Size(120, 0);
- BorderSize(10);
- BevelSize(5);
- TabSize(80, 10);
- Title("Launch");
- TitleFont("MEDIUM");
- Style("ROLLOVER", "RIGHTTAB", "OUTLINE");
- Projector(4);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Launch");
- }
-
- //
- // handle activation
- //
- OnEvent("Control::StartFadeIn")
- {
- Cmd("shell.instant.load");
- }
-
- //
- // handle the "launch" event
- //
- OnEvent("Launch")
- {
- Cmd("shell.instant.launch");
- }
-
- //
- // handle the "back" event
- //
- OnEvent("Back")
- {
- FadeOut();
- FadeIn("|ShellMain");
- }
- }
-